// FreamworkTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
//#include "CentralizedControl.h"

#include <windows.h>
#include <stdio.h>
#pragma comment(lib,"user32.lib")

BOOL CALLBACK EnumProc(
					   LPTSTR lpszWindowStation,
					   LPARAM lParam
					   )
{
	printf("NAME=%S\n",lpszWindowStation);
	return TRUE;
}



int main(int argc, char* argv[])
{
	printf("[***] BEGIN\n");
	EnumWindowStations(EnumProc,0);
	printf("[***] END\n"); 


	HWINSTA hwinsta;

	hwinsta=GetProcessWindowStation();

	if (hwinsta==NULL)
	{
		printf("[-] error:GetProcessWindowStation\n");
		return 0;
	}

	printf("[***] BEGIN\n");

	EnumDesktops(hwinsta,EnumProc,0);

	printf("[***] END\n"); 

    getchar();
      
	//CCentralizedControl::InitWinService();
	//CCentralizedControl::ServicesEntry(argc,argv);
	return 0;
}

